package com.candy.service.impl;

import com.candy.bean.UserInfo;
import com.candy.dao.UserInfoMapper;
import com.candy.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LoginServiceImpl implements LoginService {
    @Autowired
    UserInfoMapper userInfoMapper;

    @Override
    public boolean login(UserInfo userInfo) {
        UserInfo user = userInfoMapper.login(userInfo);
        if (user != null) {
            return true;
        } else {
            return false;
        }
    }
}
